import { Component, Emit, Prop } from 'vue-facing-decorator'
import Render from '@/render/Render'
import toNative from '@/utils/toNative'
import RenderItem from '../RenderItem'
import Icon from '@/assets/operation/yjxb.png'
import DialogAutoRenewal from './DialogAutoRenewal'

@Component
export class OneClickRenewal extends Render {
    showDialog = false

    onShow() {
        this.showDialog = true
    }
    render() {
        return (
            <>
                <RenderItem name="一键续保" src={Icon} onClick={this.onShow} />
                <DialogAutoRenewal v-model:show={this.showDialog} />
            </>
        )
    }
}

export default toNative<{}, {}>(OneClickRenewal)
